package top.wilbert.collegelink.message.dto;

import lombok.Data;

import java.util.Date;

/**
 * @Description:
 * @Author:Jiiangyu
 * @CreatTime:2023-03-01-10:03
 */
@Data
public class ChatMessageDto {
    //文本
    public static final int MESSAGE_TYPE_TEXT = 0;

    //图片
    public static final int MESSAGE_TYPE_IMAGE = 1;

    //发送者
    private Long fromUserId;

    //接收者
    private Long toUserId;

    //内容
    private String content;

    //发送时间
    private Date sendTime;

    //消息类型  0--普通文本（默认）
    private int type = MESSAGE_TYPE_TEXT;


}
